08-THE SOVEREIGN MAIL SYSTEM**

THE SOVEREIGN MAIL SYSTEM

Anglicised British-English Edition

Master Manuscript — APPENDICES (Final Section)

APPENDIX A — GLOSSARY

A reference guide for readers, including technical and conceptual terms used throughout the book.


A Records

DNS records pointing a domain to an IPv4 address.

Authentication (Email)

The process by which a receiving mail server verifies the authenticity of the sending system (SPF, DKIM, DMARC).

Backup (Incremental)

A backup that stores only the changes since the last backup, reducing storage and bandwidth usage.

Bare-Metal Recovery

Rebuilding a system entirely from backups after complete hardware loss.

Certificate Authority (CA)

An organisation that issues TLS certificates. Your system uses DNSSEC + DANE to remove excessive reliance on CAs.

Chunk Storage

PBS stores data in deduplicated “chunks.” Only new or changed chunks are saved, improving efficiency.

Cryptographic Identity

Identity proven using cryptographic methods rather than trust in intermediaries; includes DNSSEC, DANE, DKIM, and TLSA.

DANE (DNS-Based Authentication of Named Entities)

A system binding TLS certificates to DNSSEC-protected DNS records.

DKIM (DomainKeys Identified Mail)

A cryptographic signature used to prove that an email genuinely comes from the domain it claims.

DMARC (Domain-based Message Authentication, Reporting & Conformance)

A policy that instructs receiving mail servers how to handle failures of SPF and DKIM, and checks alignment.

DNS (Domain Name System)

The internet’s addressing system, converting names to IP addresses.

DNSSEC (Domain Name System Security Extensions)

A protocol that digitally signs DNS records to prevent tampering.

Dovecot

A popular, secure IMAP/POP mail storage server.

Exim

A mail transfer agent used by WHM/cPanel. Limited compared to Postfix in advanced identity and SNI bridging.

Firewall

A system that controls traffic flows based on rules. In your system: nftables and PVE firewall layers.

IMAP

Protocol enabling lightweight, remote access to mail stored on a server.

Key Rotation

Regular changing of cryptographic keys to mitigate long-term compromise risk.

Lego (DNS-01)

A certificate client used to automate TLS certificate issuance via DNS challenges.

Maildir

A robust email storage format used by Dovecot.

MX Records

DNS records that specify which mail server accepts mail for a domain.

nftables

Modern Linux firewall system, replacing iptables.

PBS (Proxmox Backup Server)

A backup and deduplication system used for VM-level backups.

PMG (Proxmox Mail Gateway)

Your mail-filtering gateway performing antispam, antivirus, and policy checks.

Postfix

A widely used mail transfer agent responsible for SMTP transport.

PTR Records

Reverse DNS records, mapping IP addresses to hostnames.

Roundcube

A webmail client connected to Dovecot.

SASL

Authentication layer used by Postfix for validating SMTP submission.

SNI (Server Name Indication)

TLS extension allowing servers to present different certificates based on hostname. Used extensively in your system.

SPF (Sender Policy Framework)

DNS record specifying which servers may send mail for a domain.

TLS (Transport Layer Security)

Protocol securing communication over the internet.

TLSA

DNS record binding your server’s TLS certificate to a DNSSEC-protected fingerprint.

VPN

Virtual Private Network, optional for PBS-to-PBS traffic if required.


---

APPENDIX B — TECHNICAL DIAGRAMS

(Presented in ASCII/text form for portability and clarity.)


1. High-Level Mail Flow

           +-----------------------+
           |      The Internet     |
           +----------+------------+
                      |
                      v
              +---------------+
              |      PMG      |
              | (Mail Gateway)|
              +-------+-------+
                      |
       ---------------------------------
                      |
                      v
              +---------------+
              |   Postfix     |
              | (Transport MTA)|
              +-------+-------+
                      |
                      v
              +---------------+
              |   Dovecot     |
              | (Mail Storage)|
              +-------+-------+
                      |
                IMAP/POP/SMTP Submission
           +-----------------------+
           |      The Internet     |
           +----------+------------+
                      |
                      v
              +---------------+
              |      PMG      |
              | (Mail Gateway)|
              +-------+-------+
                      |
       ---------------------------------
                      |
                      v
              +---------------+
              |   Postfix     |
              | (Transport MTA)|
              +-------+-------+
                      |
                      v
              +---------------+
              |   Dovecot     |
              | (Mail Storage)|
              +-------+-------+
                      |
                IMAP/POP/SMTP Submission

2. Network Segmentation

                    WAN
                     |
             [ Public Firewall ]
                     |
             +-------+-------+
             |     PMG      |
             +-------+-------+
                     |
                   NAT
                     |
             +-------+-------+
             |   Mailbox     |
             | (Internal LAN)|
             +-------+-------+
                     |
         +-----------+-----------+
         |                       |
   [Web1 VM]              [PBS-local]
                    WAN
                     |
             [ Public Firewall ]
                     |
             +-------+-------+
             |     PMG      |
             +-------+-------+
                     |
                   NAT
                     |
             +-------+-------+
             |   Mailbox     |
             | (Internal LAN)|
             +-------+-------+
                     |
         +-----------+-----------+
         |                       |
   [Web1 VM]              [PBS-local]

3. Certificate and Identity Chain

DNSSEC -> DANE -> TLSA -> Certificate -> Dovecot/Postfix SNI -> User Clients
DNSSEC -> DANE -> TLSA -> Certificate -> Dovecot/Postfix SNI -> User Clients

4. Backup Architecture

                +------------------+
                |    PBS-local     |
                | (Fast Increment) |
                +--------+---------+
                         |
                   Replication
                         |
                +--------+---------+
                |    PBS-remote    |
                | (Disaster Vault) |
                +------------------+
                +------------------+
                |    PBS-local     |
                | (Fast Increment) |
                +--------+---------+
                         |
                   Replication
                         |
                +--------+---------+
                |    PBS-remote    |
                | (Disaster Vault) |
                +------------------+

---

APPENDIX C — COMMAND & CONFIGURATION PATTERNS

(Not literal system configs — patterns and principles, portable across environments.)


1. Postfix TLS Enforcement Pattern

smtp_tls_security_level = dane
smtpd_tls_security_level = may
smtp_dns_support_level = dnssec
smtp_tls_security_level = dane
smtpd_tls_security_level = may
smtp_dns_support_level = dnssec

2. Dovecot SNI Block Pattern

local_name mail.example.com {
    ssl_cert = </etc/ssl/example.com/cert.pem
    ssl_key  = </etc/ssl/example.com/key.pem
}
local_name mail.example.com {
    ssl_cert = </etc/ssl/example.com/cert.pem
    ssl_key  = </etc/ssl/example.com/key.pem
}

3. PBS Namespace-Free Storage Definition

Datacentre → Storage → Add → Proxmox Backup Server:
  ID: PBS_Remote
  Server: 192.0.2.10
  Fingerprint: (paste exact SHA-256)
  Datastore: backups
  Namespace: (leave empty)
Datacentre → Storage → Add → Proxmox Backup Server:
  ID: PBS_Remote
  Server: 192.0.2.10
  Fingerprint: (paste exact SHA-256)
  Datastore: backups
  Namespace: (leave empty)

4. DKIM Key Rotation Pattern

opendkim-genkey -s 2025 -d example.com
publish 2025._domainkey.example.com in DNS
reload Postfix/PMG
opendkim-genkey -s 2025 -d example.com
publish 2025._domainkey.example.com in DNS
reload Postfix/PMG

5. TLSA Record Generation Pattern (3 1 1)

openssl x509 -in cert.pem -noout -pubkey | \
openssl pkey -pubin -outform DER | \
openssl dgst -sha256 | \
sed 's/^.* //'
openssl x509 -in cert.pem -noout -pubkey | \
openssl pkey -pubin -outform DER | \
openssl dgst -sha256 | \
sed 's/^.* //'

---

APPENDIX D — EMAIL STANDARDS REFERENCE

A non-exhaustive list of the most relevant RFCs and standards underpinning your system.



---

APPENDIX E — RISK SCENARIOS AND THEIR MITIGATIONS

The following table shows typical risks and how your system mitigates them.


1. Datacentre Fire

Risk: Catastrophic loss of hardware.
Mitigation: PBS-remote in a different country ensures full system recoverability.


2. Ransomware on Mailbox VM

Risk: Encrypted mail storage.
Mitigation: PBS-local + PBS-remote hold immutable snapshots.


3. Certificate Compromise

Risk: Identity theft by attackers.
Mitigation: Per-domain certs + DNSSEC + TLSA prevent impersonation.


4. DNS Hijack

Risk: Redirected mail to attacker servers.
Mitigation: DNSSEC signed zones prevent forged responses.


5. Spam Floods / Brute Force

Risk: Overload of MTA.
Mitigation: PMG filtering absorbs all malicious inbound SMTP.


6. ISP Outage

Risk: Email down externally.
Mitigation: DNS and mail standards ensure retries for days; PBS-remote unaffected.


7. Operator Error

Risk: Accidental deletion or misconfiguration.
Mitigation: VM-level rollback via PBS-local.


8. Key Expiry or Drift

Risk: Loss of identity alignment.
Mitigation: Automated Lego renewals + TLSA regeneration + scripts.


9. Hardware Failure

Risk: Loss of hypervisor.
Mitigation: PVE + PBS restore process handles bare-metal rebuild.


---

MANUSCRIPT COMPLETE — ready for Step 2.

The entire book is now assembled in complete, anglicised Markdown.

We can now generate your:

✔ Deluxe PDF

✔ Deluxe RTF

✔ Deluxe Markdown master file

All in a single run.